Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.user.registration.core.service.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.user.registration.core.service.contrib">

  <require>org.nuxeo.ecm.user.registration.core.types.contrib</require>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
    <doctype name="UserRegistration" extends="File">
      <facet name="UserRegistration"/>
      <facet name="HiddenInNavigation"/>
    </doctype>

    <doctype name="UserRegistrationContainer" extends="Workspace">
      <facet name="HiddenInNavigation"/>
    </doctype>
  </extension>

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
             point="types">
    <types>
      <type name="UserRegistrationContainer">default></type>
      <type name="UserRegistration">registrationRequest</type>
    </types>
  </extension>

  <extension target="org.nuxeo.ecm.user.registration.UserRegistrationService"
             point="configuration">
    <configuration>
      <requestDocType>UserRegistration</requestDocType>
      <container>
        <docType>UserRegistrationContainer</docType>
        <parentPath>/management/</parentPath>
        <name>registrationRequests</name>
        <title>Registration Requests Container</title>
      </container>
      <validationEmail>
        <title>You are invited to access Nuxeo</title>
        <template>skin/views/userRegistration/ValidationEmailTemplate.ftl</template>
      </validationEmail>
      <reviveEmail>
        <title>You are invited to access Nuxeo</title>
        <template>skin/views/userRegistration/ReviveEmailTemplate.ftl</template>
      </reviveEmail>
      <validationRelUrl>site/userRegistration/validate/</validationRelUrl>
    </configuration>
  </extension>

  <extension target="org.nuxeo.ecm.platform.audit.service.NXAuditEventsService"
             point="event">
    <event name="registrationSubmitted"/>
    <event name="registrationAccepted"/>
    <event name="registrationValidated"/>
  </extension>

  <extension
      target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="openUrl">
    <openUrl name="RegisterUser_validate">
      <grantPattern>${org.nuxeo.ecm.contextPath}/site/userRegistration/validate/.*</grantPattern>
    </openUrl>
  </extension>
</component>